// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
import store from './store/index'
import {AXIOS_TIMEOUT,SERVICE_CONTEXT_PATH} from './config/Constants'
import MuseUI from 'muse-ui'
import 'muse-ui/dist/muse-ui.css'
// import {ssoFilter} from './config/sso/SingleSignOn';
// ssoFilter(router,axios,store);//启动sso
Vue.use(MuseUI)
Vue.config.productionTip = false
Vue.prototype.$http=axios//在子组件中使用axios方式直接使用 this.$http
//axios默认配置
axios.defaults.timeout=AXIOS_TIMEOUT
axios.defaults.baseURL=SERVICE_CONTEXT_PATH
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,//这里使用的是es6语法，相等于 router:router
  store,//在子组件中使用store方式直接使用 this.$store.state.user.id
  template: '<App/>',
  components: { App }
})
